
#ifndef PACKETS_H
#define	PACKETS_H

/**
 * permissions and packet defines
 */

enum permissions
{
    A_APPLICANT = 0x01,
    A_RECRUITER = 0x02,
    A_REVIEWER = 0x03,
    A_REFERENCE = 0x04,
    A_ADMIN = 0x05
};

enum packets
{
    P_LOGIN = 0x01,

    // APPLICANT PACKETS

    P_GETALLJOBS = 0x10,
    P_GETJOB = 0x11,
    P_SUBMITAPP = 0x12,

    // RECRUITER PACKETS

    P_EDITJOB = 0x20,
    P_DELETEJOB = 0x21,
    P_GETALLAPP = 0x22,
    P_GETAPPLICATION = 0x23,
    P_GETREVIEWRATING = 0x24,
    P_ADDREVIEWER = 0x25,
    P_DELETEREVIEWER = 0x26,
    P_GETALLREVIEWERS = 0x27,
    P_GETREVIEWER = 0x28,
    P_EDITREVIEWERACCOUNT = 0x29,
    P_DELETEREVIEWERACCOUNT = 0x2A,

    // REVIEWER PACKETS

    P_GETRATING = 0x30,
    P_SENDRATING = 0x31,
    P_GETREVIEWALLAPPS = 0x32,
    P_GETREVIEWAPP = 0x33,

    // REFERENCE PACKETS

    P_REQUESTAPP = 0x40,
    P_SENDREFERENCE = 0x41,

    // ADMIN PACKETS

    P_GETACCOUNTS = 0x50,
    P_GETACCOUNT = 0x51,
    P_EDITACCOUNT = 0x52,
    P_DELETEACCOUNT = 0x53
};

#endif

